<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<jsp:include page="common/header.jsp"></jsp:include>

<h1>
	<img src="${pageContext.request.contextPath}/views/images/icons/posts.png" alt="" /> 修改密码
</h1>

<div class="bloc">
	<div class="title">修改密码</div>
	<div class="content">
		<form:form id="login" commandName="userform" modelAttribute="userform" action="${pageContext.request.contextPath}/admin-chpwd/changepass" method="post">
			<form:hidden path="id"/>
			<form:hidden path="email"/>
			<form:hidden path="description"/>
			<form:hidden path="roleId"/>
			<div class="input">
				<label for="input1">用户名</label>
				<form:input path="username" id="username" readonly="true"/>
			</div>
			<div class="input">
				<label for="input1">新密码</label>
				<form:password path="pwd" id="pwd" /><form:errors path="pwd" cssClass="formerror" />
			</div>
			<div class="input">
				<label for="input1">确认新密码</label>
				<form:password path="confirmPwd" id="confirmPwd"/><form:errors path="confirmPwd" cssClass="formerror"/>
			</div>
			
			<div class="submit" style="margin-top: 20px;">
				<input type="submit" value="修改" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="reset" value="取消" class="white" onclick="javascript :history.go(-1);">
			</div>
		</form:form>
	</div>
</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/views/js/chpwd.js"></script>